/*
 * Coordenada2d.h
 *
 *  Created on: Jun 3, 2009
 *      Author: adailton
 */

#ifndef COORDENADA2D_H_
#define COORDENADA2D_H_

#include <string>
#include "Util.h"

class Coordenada2d {
public:
    Coordenada2d();
    Coordenada2d(double x, double y);
    virtual ~Coordenada2d();

    double X();
    double Y();

    void setCoordenadas(Coordenada2d coor);
    void setCoordenadas(double x, double y);

    void X(double x);
    void Y(double y);

    bool operator==(Coordenada2d);
    bool operator!=(Coordenada2d);

    std::string toString();

protected:
    double mX, mY;
};

#endif /* COORDENADA2D_H_ */
